package com.su.middle.bp;

import com.su.middle.services.Proposals;
import com.su.middle.services.ProposalsImpl;

public class CreateProposalTask {
	
	public int createProposal(String studentName, String supervisorName, String title, String status) {
		
		try {
			Proposals proposal = new Proposals(-1, status, studentName, supervisorName, title);
			return ProposalsImpl.createProposal(proposal);
		} catch (Exception e) {
			e.printStackTrace();			
		}
		
		return -1;
	}
}
